<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>课程信息录入</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <link rel="icon" th:href="@{/favicon.ico}">
    <link rel="shortcut icon" th:href="@{/favicon.ico}">
    <link type="text/css"  th:href="@{/css/index.css}" rel="stylesheet"  />
    <script th:src="@{/js/jQuery1.7.2.js}" type="text/javascript"></script>
    <script th:src="@{/js/info.js}" type="text/javascript"></script>
</head>
<body>
    <div class="mian_center">
        <span class="main_titile"><img th:src="@{/images/login_j_03.png}">课程信息录入</span>
        <div class="main_info">
            <form th:action="@{/course/add}" method="post">
                <ul class="fl">
                    <li><span class="msg">[[${courseId}]]&nbsp;&nbsp;[[${msg}]]</span></li>
                    <li><span>课程类型:</span>
                        <select id="showTeacherAndClassroom" name="courseTypeName">
                            <option selected="selected" value="0">【请选择】</option>
                            <option th:if="${courseTypes!=null}" th:each="type : ${courseTypes}" th:value="${type.courseTypeId }">[[${type.courseTypeName}]]</option>
                        </select>
                        <span class="msg">[[${courseTypeName}]]</span>
                    </li>
                    <li><span>课程名称:</span>
                        <input type="text" name="courseName" required="required" autocomplete="off">
                        <span class="msg">[[${courseName}]]</span>
                    </li>
                    <li><span>课程时长:</span>
                        <input type="text" name="courseDuration" required = "required" autocomplete="off">
                        <span class="msg">[[${courseDuration}]]</span>
                    </li>
                    <li><span>课程收费:</span>
                        <input type="text" name="coursePrice" required = "required" autocomplete="off">
                        <span class="msg">[[${coursePrice}]]</span>
                    </li>
                    <li><span>授课老师:</span>
                        <select name="teacherName" id="teacher_name">
                            <option selected="selected" value="0">【请选择】</option>
                        </select>
                        <span class="msg">[[${teacherName}]]</span>
                    </li>
                    <li><span>上课教室:</span>
                        <select name="classroomName" id="classroom_name">
                            <option selected="selected" value="0">【请选择】</option>
                        </select>
                        <span class="msg">[[${classroomName}]]</span>
                    </li>
                    <li>
                        <span>年龄范围:</span>
                        <select id="minAge" name="minAge" style="width: 97.5px;">
                            <option selected="selected" value="0">【请选择】</option>
                            <option th:each="num : ${#numbers.sequence(6,16)}" th:value="${num}">[[${num}]]</option>
                        </select>
                        &nbsp;-&nbsp;
                        <select id="maxAge" name="maxAge" style="width: 97.5px;">
                            <option selected="selected" value="0">【请选择】</option>
                            <option th:each="num : ${#numbers.sequence(6,16)}" th:value="${num}">[[${num}]]</option>
                        </select>
                        <p><span class="msg">[[${minAge}]]</span></p>
                        <p><span class="msg">[[${maxAge}]]</span></p>
                    </li>
                </ul>
                <div class="clear"></div>
                <div class="main_btn">
                    <input type="hidden" name="courseId" value="0">
                    <input class="save" type="submit" value="保存">
                </div>
            </form>
        </div>
    </div>
</body>
</html>